package net.sk.demo.client;

import net.sk.demo.api.TimeService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author sk.z
 */
public class ClientBootstrap {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        TimeService timeService = applicationContext.getBean(TimeService.class);
        System.out.println(timeService.now().toString());
    }
}
